Computes the cross-product of a vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(3) |
The left-hand-side argument. |
||
| real(kind=real64), | intent(in) | :: | y(3) |
The right-hand-side argument |
The resulting vector.
Computes the projection of vector x onto vector y. The scalar projection is defined such that .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The vector to project. |
|
| real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The vector onto which x should be projected. |
The scalar projection of x onto y.
Converts a 3-element vector to a 3-by-3 skew-symmetric matrix. A skew-symmetric matrix is defined as follows.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | x(3) |
The vector. |
The resulting skew-symmetric matrix.
Computes the angle between two vectors.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The first vector. |
|
| real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The second vector. |
The angle, in radians.
Computes the vector pojection of vector x onto vector y. The vector projection is defined such that
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The vector to project. |
|
| real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The vector onto which x should be projected. |
The vector projection of x onto y.